package com.zzh.weixinsell.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzh.weixinsell.enums.OrderStatusEnum;
import com.zzh.weixinsell.enums.PayStatusEnum;
import com.zzh.weixinsell.model.pojo.OrderDetail;
import com.zzh.weixinsell.utils.serializer.DataToLongserializer;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Create by ${ZZH} on 2018/4/21
 */
@Data
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class OrderDTO {

    private String orderId;

    private String buyerName;

    private String buyerPhone;

    private String buyerAddress;

    private String buyerOpenid;

    private BigDecimal orderAmount;

    //订单状态 默认为0 新下单
    private Integer orderStatus;

    //支付状态  默认为0 未支付
    private Integer payStatus;
//    @JsonSerialize(using = DataToLongserializer.class)
    private Date createTime;

//    @JsonSerialize(using = DataToLongserializer.class)
    private Date updateTime;

    List<OrderDetail> orderDetailList;
}
